<!--[if lt IE 8]>
<div class="alert alert-danger" style="margin-bottom: 0">{:L('_TIP_BROWSER_DEPRECATED_1_')} <strong>{:L('_TIP_BROWSER_DEPRECATED_2_')}</strong>
    {:L('_TIP_BROWSER_DEPRECATED_3_')} <a target="_blank"
                                          href="http://browsehappy.com/">{:L('_TIP_BROWSER_DEPRECATED_4_')}</a>
    {:L('_TIP_BROWSER_DEPRECATED_5_')}
</div>
<![endif]-->
<header>
    <nav class="navbar-muushop navbar-fixed-top" role="banner">
        <div class="container-fluid">
            <!-- Start Header Navigation -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-menu" aria-expanded="false">
                    <i class="icon icon-bars"></i>
                </button>
                <a class="brand" href="{:U('Home/Index/index')}"><img src="{$logo}" class="logo" alt=""></a>
            </div>
            <!-- End Header Navigation -->

            <div class="collapse navbar-collapse" id="navbar-menu" aria-expanded="false">
                <ul class="navbar-left">
                    <volist name="custom_nav" id="vo">
                        <li><a href="{$vo.url}">{$vo.title} </a></li>
                    </volist>
                </ul>
            </div>
                <ul class="navbar-icon">
                    <li>
                        <a href="javascript::" data-toggle="modal" data-show-header="false" data-name="topCatsModal" data-size="fullscreen" data-remote="{:U('Muushop/Public/topcats')}"><i class="icon icon-th"></i></a>
                    </li>
                    <li>
                        <a class="search-btn" href="javascript::" data-toggle="modal" data-show-header="false" data-name="searchModal" data-size="fullscreen" data-remote="{:U('Muushop/Public/_search')}"><i class="icon icon-search"></i></a>
                    </li>
                    <li data-type="cart_count" data-url="/muushop/cart/count">
                        <a href="{:U('Muushop/Cart/index')}"> <i class="icon icon-shopping-cart"></i>  <span class="label label-danger cart_count">0</span></a> 
                    </li>

                    <!--登陆面板-->
                    <if condition="is_login()">
                        <li >
                            <a id="messages_btn" data-role="open-slider-box" data-toggle="modal" data-target="#msgModal" class="dropdown-toggle text-left" >
                                <i class="icon icon-chat-dot"></i>
                                <span id="nav_bandage_count"  style="display: none" class="label label-danger" data-role="now-message-num"></span>
                            </a>
                        </li>
                        <li class="dropdown">

                            <a role="button" class="dropdown-toggle dropdown-toggle-avatar" data-toggle="dropdown">
                                <img src = "{$common_header_user.avatar32}" class="img-circle"/>
                            </a>
                            <ul class="dropdown-menu pull-right" role="menu">
                                <volist name="user_nav" id="vo">
                                    <li><a target="<eq name='vo.target' value='1'>_blank<else/>_self</eq>"
                                        href="{:get_nav_url($vo['url'])}"><span
                                        class="icon-{$vo.icon}"></span>&nbsp;&nbsp;{$vo.title} 
                                        <span class="label label-badge rank-label" title="{$vo.band_text}">{$vo.band_text}</span></a>
                                    </li>
                                </volist>

                                <if condition="invite">
                                    <li><a href="{:U('ucenter/Invite/invite')}"><span class="glyphicon glyphicon-star"></span>&nbsp;&nbsp;{:L('_INVITE_FRIENDS_')}</a></li>
                                </if>
                                {:hook('personalMenus')}
                                <if condition="check_auth('Admin/Index/index')">
                                    <li><a href="{:U('Admin/Index/index')}" target="_blank"><span
                                            class="glyphicon glyphicon-dashboard"></span>&nbsp;&nbsp;{:L('_MANAGE_BACKGROUND_')}</a>
                                    </li>
                                </if>
                                <li><a event-node="logout"><span class="glyphicon glyphicon-off"></span>&nbsp;&nbsp;{:L('_LOGOUT_')}</a>
                                </li>
                            </ul>
                        </li>
                        <else/>
                        <li class="">
                            <if condition="$open_quick_login">
                                    <a data-login="quick_do_login" data-remote="{:U('Ucenter/Member/quickLogin')}" data-toggle="modal"><i class="icon icon-user"></i></a>
                            <else/>
                                    <a data-login="do_login" href="{$login_url}"><i class="icon icon-user"></i></a>
                            </if>
                        </li>
                    </if>
                </ul>
        </div>   
    </nav>
</header>
<include file="Public/_system"/>
<input type="hidden" data-toggle="cart_count" value='{:U("Muushop/cart/count")}' />